import unittest

from pyramid import testing


class Test(unittest.TestCase):
    def setUp(self):
        self.config = testing.setUp()

    def tearDown(self):
        testing.tearDown()

    def test_my_view(self):
        from ..views.YX.DiscoveryView import DiscoveryView
        request = testing.DummyRequest()
        d = DiscoveryView(request)
        response = d.DiscoveryRoute()
        self.assertEqual(response, {'name': 'Discovery View'})
if __name__ == '__main__':
    unittest.main()
